﻿@using BlazorWebAppEFCore.Grid
@inject IContactFilters Filters

@if (Column == Filters.SortColumn)
{
    <span>@SortSymbol</span>
}
else
{
    <span>&nbsp;</span>
}

@code {
    // Sets which ContactFilterColumns this indicator is for.
    [Parameter]
    public ContactFilterColumns Column { get; set; }

    // The symbol to render.
    private string SortSymbol => Filters.SortAscending ? "🔼" : "🔽";
}
